package day05;

/**
 * for循环
 * @author XingHaiYang
 * @date 2022/9/8 10:26
 */
public class ForDemo {
    public static void main(String[] args) {
        /**
         * 案例1：输出9的乘法表，只要不能被3整除的
         */
        for (int num = 1; num <= 9; num++) {
            if(num%3!=0){
                System.out.println(num+"*9="+num*9);
            }
        }
        /**
         * 案例2：输出9的乘法表，跳过能被3整除的
         */
        for (int num = 0; num <= 9; num++) {
            if(num%3==0){
                continue;
            }
            System.out.println(num+"*9="+num*9);
        }
    }
}
